<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	<span class="color_red">*</span>仪器设备购置（或自制）清单
</div>
	<table  id="eq_table1" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="10%">设备名称</th>
						<th class="TblHead" align="center"  width="10%">型号/规格</th>
						<th class="TblHead" align="center"   width="10%">单价（万元）</th>
						<th class="TblHead" align="center"   width="5%" >数量</th>
						<th class="TblHead" align="center"   width="10%"> 金额（万元）</th>
						<th class="TblHead" align="center"   width="10%"> 凭证号</th>
						<th class="TblHead" align="center"   width="15%"> 研发用途</th>
						<th class="TblHead" align="center"   width="15%"> 购买年月</th>
						<th class="TblHead" align="center"   width="10%"> 备注</th>
					</tr>
			</thead>
			<tbody id="tab">
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/equipments/equipment" var="equipment">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">
							<x:out select="$equipment/@seq_no"/>
						</td>
						
						<td >
							<x:out select="$equipment/sname" />
						</td>
						<td >
							<x:out select="$equipment/eq_type"/>
						</td>
						<td align="center">
							<x:out select="$equipment/price_each"/>
						</td>
						<td align="center">
							<x:out select="$equipment/eq_num"/>
						</td>
						<td align="center">
							<x:out select="$equipment/price_total"/>
						</td>
						<td >
							<x:out select="$equipment/depend_num"/>
						</td>
						<td >
							<x:out select="$equipment/use_way"/>
						</td>
						<td align="center">
							<x:out select="$equipment/buy_date"/>
						</td>
						<td >
							<x:out select="$equipment/others"/>
						</td>
					
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
					</table>
					<table id="total1" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
						<col style="width: 5%"/>
						<col style="width: 10%"/>
						<col style="width: 10%"/>
						<col style="width: 10%"/>
						<col style="width: 5%"/>
						<col style="width: 10%"/>
						<col style="width: 10%"/>
						<col style="width: 15%"/>
						<col style="width: 15%"/>
						<col style="width: 10%"/>
						<tr>
							<td align="right" >合计：</td>
							<td align="center">/</td>
							<td align="center">/</td>
							<td align="center">/</td>
							<td align="center">
								<x:out select="$xmlData/data/equipments/total_num1"/>
							</td>
							<td align="center">
								<x:out select="$xmlData/data/equipments/total_price1"/>
							</td>
							<td align="center">/</td>
							<td align="center">/</td>
							<td align="center">/</td>
							<td align="center">/</td>
						</tr>
					
					</table>
				<p>备注：自制仪器设备请在此表中填写自制成套仪器设备名称、型号/规格，金额填写成本价</p>
					<br/>
					
<div class="t_bar">
	企业自制仪器设备零部件购置清单
</div>
	<table  id="eq_table2" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
		<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="10%">零部件名称</th>
						<th class="TblHead" align="center"  width="10%">型号/规格</th>
						<th class="TblHead" align="center"   width="9%" >单价（万元）</th>
						<th class="TblHead" align="center"   width="5%" >数量</th>
						<th class="TblHead" align="center"   width="9%"> 金额（万元）</th>
						<th class="TblHead" align="center"   width="8%"> 发票号</th>
						<th class="TblHead" align="center"   width="8%"> 凭证号</th>
						<th class="TblHead" align="center"   width="13%"> 零部件用途</th>
						<th class="TblHead" align="center"   width="13%"> 购买时间</th>
						<th class="TblHead" align="center"   width="10%"> 备注</th>
					</tr>
			</thead>
			<tbody id="tab">
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/equipment2s/equipment2" var="equipment2">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">
							<x:out select="$equipment2/@seq_no"/>
						</td>
						
						<td >
							<x:out select="$equipment2/sname" />
						</td>
						<td >
							<x:out select="$equipment2/eq_type"/>
						</td>
						<td align="center">
							<x:out select="$equipment2/price_each"/>
						</td>
						<td align="center">
							<x:out select="$equipment2/eq_num"/>
						</td>
						<td align="center">
							<x:out select="$equipment2/price_total"/>
						</td>
						<td >
							<x:out select="$equipment2/depend1_num"/>
						</td>
						<td >
							<x:out select="$equipment2/depend_num"/>
						</td>
						<td >
							<x:out select="$equipment2/use_way"/>
						</td>
						<td align="center">
							<x:out select="$equipment2/buy_date"/>
						</td>	
						<td >
							<x:out select="$equipment2/others"/>
						</td>
					
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
					</table>
					<table id="total2" class="t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
						<col style="width: 5%"/>
						<col style="width: 10%"/>
						<col style="width: 10%"/>
						<col style="width: 9%"/>
						<col style="width: 5%"/>
						<col style="width: 9%"/>
						<col style="width: 8%"/>
						<col style="width: 8%"/>
						<col style="width: 13%"/>
						<col style="width: 13%"/>
						<col style="width: 10%"/>
						<tr>
							<td align="right" >合计：</td>
							<td align="center">/</td>
							<td align="center">/</td>
							<td align="center">/</td>
							<td align="center">
								<x:out select="$xmlData/data/equipments/total_num2"/>
							</td>
							<td align="center">
								<x:out select="$xmlData/data/equipments/total_price2"/>
							</td>
							<td align="center">/</td>
							<td align="center">/</td>
							<td align="center">/</td>
							<td align="center">/</td>
							<td align="center">/</td>
						</tr>
					</table>
<script type="text/javascript">
	$(function() {
		changeCss("eq_table1","total1");
		changeCss("eq_table2","total2");
	});
	
	function changeCss(id1,id2) {
		if($("#"+id1+" tr:last").attr("class")=="li_1"){
			$("#"+id2+" tr").removeClass("li_1").addClass("li_2");
		}else{
			$("#"+id2+" tr").removeClass("li_2").addClass("li_1");
		}
	}
</script>